package com.neu.doc;

import java.util.List;

import com.neu.domain.ShoppingCoupon;
import com.neu.domain.ShoppingGoods;
import com.neu.domain.ShoppingGoodsAttribute;
import com.neu.domain.ShoppingGoodsProduct;
import com.neu.domain.ShoppingGoodsSpecification;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(value = "返回商品详情",description = "返回商品详情")
public class AdminGoodsController_detail {
	@ApiModelProperty(value="错误编码，成功是0",dataType="integer")
	private Integer errno=0;
	@ApiModelProperty(value="错误信息描述",dataType="string")
	private String errmsg="成功";
	@ApiModelProperty(value = "商品详情数据",dataType = "GoodsData")
	private GoodsData data;
	
	public Integer getErrno() {
		return errno;
	}

	public void setErrno(Integer errno) {
		this.errno = errno;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}

	public GoodsData getData() {
		return data;
	}

	public void setData(GoodsData data) {
		this.data = data;
	}
	@ApiModel(value = "商品详情数据",description = "商品详情数据")
	public class GoodsData{
		@ApiModelProperty(value="商品信息",dataType="ShoppingGoods")
		ShoppingGoods goods ;
		@ApiModelProperty(value="商品生成信息",dataType="List<ShoppingGoodsProduct>")
	    List<ShoppingGoodsProduct> products ;
		@ApiModelProperty(value="商品生成信息",dataType="List<ShoppingGoodsSpecification>")
	    List<ShoppingGoodsSpecification> specifications ;
		@ApiModelProperty(value="商品生成信息属性",dataType="List<ShoppingGoodsAttribute>")
	    List<ShoppingGoodsAttribute> attributes ;
		@ApiModelProperty(value="商品数量",dataType=" Integer[]")
	    Integer[] categoryIds;	
		public ShoppingGoods getGoods() {
			return goods;
		}
		public void setGoods(ShoppingGoods goods) {
			this.goods = goods;
		}
		public List<ShoppingGoodsProduct> getProducts() {
			return products;
		}
		public void setProducts(List<ShoppingGoodsProduct> products) {
			this.products = products;
		}
		public List<ShoppingGoodsSpecification> getSpecifications() {
			return specifications;
		}
		public void setSpecifications(List<ShoppingGoodsSpecification> specifications) {
			this.specifications = specifications;
		}
		public List<ShoppingGoodsAttribute> getAttributes() {
			return attributes;
		}
		public void setAttributes(List<ShoppingGoodsAttribute> attributes) {
			this.attributes = attributes;
		}
		public Integer[] getCategoryIds() {
			return categoryIds;
		}
		public void setCategoryIds(Integer[] categoryIds) {
			this.categoryIds = categoryIds;
		}
	}
	
	
}
